package com.generator.service.courseResource.impl;

import com.generator.dao.courseResource.CourseResourceDao;
import com.generator.entity.courseResource.CourseResource;
import com.generator.service.courseResource.CourseResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CourseResourceServiceBean implements CourseResourceService {

    @Autowired
    private CourseResourceDao courseResourceDao;

    @Override
    public List<CourseResource> findAllCourseResources() {
        return courseResourceDao.findAllCourseResources();
    }
}
